package com.hnkywl.sts.webservice.bg.request;

import java.util.Date;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: nianjunyan
 * Date: 13-5-27
 * Time: 下午2:09
 * To change this template use File | Settings | File Templates.
 */
public class Contract {

    // 接口合同ID
    private Long contractId;

    //  合同编号
    private String contractNo;

    // 供应商编码
    private String providerCode;

    // 供应商名称全称
    private String providerName;

    // 合同签订人
    private String contractPeople ;

    // 合同签时间
    private Date contractDate;

    // 合同合同结束日期
    private Date endDate;

    // 总金额
    private Double amount;

    // 合同税率
    private Double taxRate;

    // 合同方式
    private String type;

    // 备注
    private String desc;

    // 是否立即生效
    private String isEffect;

    // 物资业务部门id
    private Long departmentId;

    // 合同明细
    List<ContractDetail>  listDetail;

    // 合同明细和计划明细对照
    List<Compare> compareList;

    // 月付款 比例
    List<PaymentRate>  paymentRateList;

    public Long getContractId() {
        return contractId;
    }

    public void setContractId(Long contractId) {
        this.contractId = contractId;
    }

    public String getContractNo() {
        return contractNo;
    }

    public void setContractNo(String contractNo) {
        this.contractNo = contractNo;
    }

    public String getProviderCode() {
        return providerCode;
    }

    public void setProviderCode(String providerCode) {
        this.providerCode = providerCode;
    }

    public String getProviderName() {
        return providerName;
    }

    public void setProviderName(String providerName) {
        this.providerName = providerName;
    }

    public Date getContractDate() {
        return contractDate;
    }

    public void setContractDate(Date contractDate) {
        this.contractDate = contractDate;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    public Double getAmount() {
        return amount;
    }

    public void setAmount(Double amount) {
        this.amount = amount;
    }

    public Double getTaxRate() {
        return taxRate;
    }

    public void setTaxRate(Double taxRate) {
        this.taxRate = taxRate;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public List<ContractDetail> getListDetail() {
        return listDetail;
    }

    public void setListDetail(List<ContractDetail> listDetail) {
        this.listDetail = listDetail;
    }

    public List<Compare> getCompareList() {
        return compareList;
    }

    public void setCompareList(List<Compare> compareList) {
        this.compareList = compareList;
    }

    public String getEffect() {
        return isEffect;
    }

    public void setEffect(String effect) {
        isEffect = effect;
    }

    public String getContractPeople() {
        return contractPeople;
    }

    public void setContractPeople(String contractPeople) {
        this.contractPeople = contractPeople;
    }

    public Long getDepartmentId() {
        return departmentId;
    }

    public void setDepartmentId(Long departmentId) {
        this.departmentId = departmentId;
    }

    public List<PaymentRate> getPaymentRateList() {
        return paymentRateList;
    }

    public void setPaymentRateList(List<PaymentRate> paymentRateList) {
        this.paymentRateList = paymentRateList;
    }

    @Override
    public String toString() {
        String compare = "合同编码: "+contractNo+",附件列表:[";
        if(compareList != null && compareList.size() > 0) {
            for(Compare comp : compareList) {
                compare += "{"+comp.getDetailId()+","+comp.getContractDetailId()+"}";
            }
        }
        compare += "]";
        return compare;
    }
}
